
#pragma once
#ifndef __HITABLELIST_H__
#define __HITABLELIST_H__
 
#include "hitable.h"
 
class hitable_list :public hitable {
public:
	hitable_list() {};
	hitable_list(hitable **l, int n) { list = l;list_size = n; }
	virtual bool hit(const ray&r,float tmin,float tmax,hit_record& rec)const;
	virtual bool bounding_box(float t0, float t1, aabb& box) const override;
	hitable **list;
	int list_size;
};
 

 
#endif